//
//  {{ClassSourceModel.class_name}}.h
//  {{ClassSourceModel.description}}
//  Ctrip_Wireless_4.0
//
//  Created by gideon qiu
//

#import "{{ClassSourceModel.class_name}}.h"
{% for import_class in ClassSourceModel.import_class_list -%}
{{import_class}}
{% endfor %}
@implementation {{ClassSourceModel.class_name}}
{% for field_model in ClassSourceModel.field_list -%}
{% if field_model.field_name=="description" -%}
@synthesize {{field_model.field_name}};
{%- endif %}
{%- endfor %}

-(id)init{
	self = [super init];
	if(self){
		self.realServiceName = @"{{ClassSourceModel.service_code}}";
		{% for field_model in ClassSourceModel.field_list -%}
		self.{{field_model.field_name}} = {{field_model.default_value}};
		{% endfor %}
	}
	return self;
}

{% if ClassSourceModel.hasListProperty -%}
+ (NSDictionary *)modelContainerPropertyGenericClass
{
    return @{
    {% for field_model in ClassSourceModel.field_list -%}
    {%- if field_model.parser_type=="List" -%}
        @"{{field_model.field_name}}": {{field_model.field_parm_type}}.class,
    {%- endif -%}
    {% endfor %}
    };
}
{%- endif %}
@end
